﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Vici.Mvc;
using Ss.Model;
namespace web
{
    /// <summary>
    /// 后台控制器
    /// </summary>
    public class AdminController : BaseController
    {
        [BeforeAction]
        new public void BeforeAction()
        {
            #region 加载模板
            this.ChangeLayout("Master/EasyUIMaster");
            #endregion
            #region 加载EasyUI
            IncludeEasyUi();
            #endregion
            if (!Session.IsLogin)
            {
                Session.User = User.Read(1);
                Redirect("~/admin");
            }
        }
    }
}